package com.example.bysj.domain;
//201902104061徐中堂
import com.example.bysj.domain.authority.Actor;
import lombok.*;

import java.io.Serializable;

@Setter
@Getter
@ToString
@AllArgsConstructor
@NoArgsConstructor
public final class Teacher
		extends Actor
		implements Comparable<Teacher>, Serializable{

	private Integer id;
	private String no;
	private String name;
	//属性名为Title，字段名为profTitle
//	private ProfTitle profTitle;
//	private Degree degree;
	private Department department;
	@Override
	public int compareTo(Teacher other) {
		// no为排序依据
		return this.no.compareTo(other.no);
	}

}
